package com.education.service.cms.feign;

import com.education.result.R;
import com.education.service.cms.feign.fallback.OssFileServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用 OSS 模块
 * Created by Lance on 2020/07/02 15:07
 */
@Service
@FeignClient(value = "online-education-service-oss", fallback = OssFileServiceFallBack.class)
public interface OssFileService {

    /**
     * 远程调用 oss 模块删除头像
     * @param url
     * @return
     */
    @DeleteMapping("/admin/oss/file/remove")
    R removeFile(@RequestBody String url);
}
